﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HR.ProjectX.Models.Entities.Vehicles
{
    public class Model : EntityBase<int>
    {
        public virtual string ModelName { get; set; }

        protected override void Validate()
        {
            if (string.IsNullOrEmpty(ModelName))
            {
                throw new InvalidOperationException("ModelName cannot be empty.");
            }
        }
    }
}
